const { PrismaClient } = require('@prisma/client');

try {
  const prisma = new PrismaClient();
  console.log('Prisma client created successfully');
  console.log('Available models:', Object.keys(prisma));
  
  // Check specific models
  if (prisma.knowledgeBase) {
    console.log('✓ knowledgeBase model available');
  } else {
    console.log('✗ knowledgeBase model NOT available');
  }
  
  if (prisma.fileUpload) {
    console.log('✓ fileUpload model available');
  } else {
    console.log('✗ fileUpload model NOT available');
  }
  
  if (prisma.comment) {
    console.log('✓ comment model available');
  } else {
    console.log('✗ comment model NOT available');
  }
  
  prisma.$disconnect();
} catch (error) {
  console.error('Error creating Prisma client:', error);
}
